package com.dreamer.service.lottery;

import com.dreamer.domain.lottery.Lottery;
import com.dreamer.domain.lottery.Player;
import com.dreamer.domain.pmall.goods.PmallGoods;
import com.dreamer.domain.user.Accounts;
import com.dreamer.domain.user.AccountsRecord;
import com.dreamer.domain.user.Agent;
import com.dreamer.domain.user.enums.AccountsType;
import com.dreamer.service.mobile.BaseHandler;

import java.util.List;
import java.util.Map;

/**
 * Created by huangfei on 02/07/2017.
 */
public interface LotteryHandler extends BaseHandler<Lottery>{

    /**
     * 获取抽奖次数
     * @param uid
     * @param lid
     * @return
     */
    Integer getLotteryCount(Integer uid, Integer lid);


    /**
     * 参与抽奖
     * @param uid 抽奖人
     * @param lid 参与的活动
     */
    Player getGift(Integer uid, Integer lid);

    /**
     * 获取抽奖结果
     * @param uid
     * @param lid
     * @return
     */
    List<Player> getGiftResults(Integer uid,Integer lid);

}
